<script>
/**
 * 老师打开受训报告
 */
function openTrainedReportTeacher_classes(clc){
	var url = create_url("trainedReport-reportTeacher");
	var parm = {"clc" : clc};
	$.colorbox({overlayClose:false, href:url, data:parm, close:'[关闭]', width:'850px', height:'600px', open:true});
}
</script>
<#import "/freemarker/modeltype.ftl" as mt>
<#import "/freemarker/modeltype_entity.ftl" as mte>
<div class="dataTables_title">
	<div class="dataTables_title_left">按钮注释</div>
	<div class="dataTables_title_right">
		<a class="btn btn-danger" href="#"><i class="icon-lock"></i> 屏蔽</a>
		<a class="btn btn-warning" href="#"><i class="icon-unlock"></i> 解除屏蔽</a>
		<a class="btn btn-success" href="#"><i class="icon-edit"></i> 编辑</a>
		<a class="btn btn-info" href="#"><i class=" icon-flag"></i> 报名管理</a>
		<a class="btn btn-primary" href="#"><i class="icon-thumbs-up"></i>学员受训报告</a>
		<!-- <a class="btn btn-rounded" href=""><i class="iconsweets-chart3"></i>及格率及学习统计</a> -->
	</div>
</div>
<div>
	<table class="table table-bordered">
		<thead>
			<tr>
				<th>班级名称</th>
				<th>报名开始时间</th>
				<th>报名结束时间</th>
				<th>开班时间</th>
				<th>班级结束时间</th>
				<th>报名限制人数</th>
				<th>创建人</th>
				<th style="width:15%;text-align: center;">操作</th>
			</tr>
		</thead>
		<tbody>
			<#list pageBean.resultList as c>
			<tr class="footable-even" style="display: table-row;">
				<td>
					${c.name}
				</td>
				<td>
				<@mt.timeFormat r=true value=(c.startSignTime) dataForm="yyyy-MM-dd HH:mm"/>
					<#if c.startSignTime??>${c.startSignTime?string("yyyy-MM-dd")}</#if>
				</td>
				<td>
					<#if c.endSignTime??>${c.endSignTime?string("yyyy-MM-dd")}</#if>
				</td>
				<td>
					<#if c.beginTime??>${c.beginTime?string("yyyy-MM-dd")}</#if>
				</td>
				<td>
					<#if c.finishTime??>${c.finishTime?string("yyyy-MM-dd")}</#if>
				</td>
				<td>
					${c.num!'无限制'}
				</td>
				<td>
					${c.cn}
				</td>
				<td style="width:16%;text-align: center;">
					<#if !c.deleted>
					<button class="btn btn-xs btn-danger" onclick="javascript: shield_classes('${c.code}', '${c.name}');" title="屏蔽">
						<i class="icon-lock"></i>
					</button>
					<#else>
					<button class="btn btn-xs btn-info" onclick="javascript: unshield_classes('${c.code}', '${c.name}');" title="解除屏蔽屏蔽">
						<i class="icon-unlock"></i>
					</button>
					</#if>
					<button class="btn btn-xs btn-success" onclick="javascript:sys_load_handle('classes-edit_${c.code}'); return false;" title="编辑">
						<i class="icon-edit"></i>
					</button>
					<button class="btn btn-xs btn-info" onclick="javascript:signClasses_classes('${c.code}'); return false;" title="报名管理">
						<i class="icon-flag"></i>
					</button>
					<#if c.count && c.count != 0><span class="badge badge-sm up bg-danger pull-right-xs">${c.count!''}</span></#if>
					<button class="btn btn-xs btn-primary"  onclick="javascript: openTrainedReportTeacher_classes('${c.code}'); return false;" title="学院受训报告">
						<i class="icon-thumbs-up"></i>
					</button>
					<!-- <button class="btn btn-xs btn-rounded" onclick="javascript: sys_load_handle('classes-passRate_${c.code}'); return false;" title="及格率及学习统计">
						<i class="iconsweets-chart3"></i>
					</button> -->
				</td>
			</tr>
			</#list>
		</tbody>
	</table>
</div>
<#import "/freemarker/pagination.ftl" as p>
<@p.pagination pageBean 'queryClasses_classes' />